﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _041.自定义特性
{
	[Information("fzn", "v1.1", "发射的类")]
	internal class Program
	{
		static void Main(string[] args)
		{
			Type type = typeof(Program);
			bool res = type.IsDefined(typeof(InformationAttribute), false);
			Console.WriteLine(res);

			object[] attributesArray = type.GetCustomAttributes(false);
			foreach (object attribute in attributesArray)
			{
				Console.WriteLine(attribute.ToString());
			}
		}
	}
}
